package com.springboot.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Email;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity
public class BtBank {
    @Id
    private String id;
    private String name;
    private String type;
    private String license;
    private String principal;
    private String contact;
    private String tel;
    @Email
    private String email;
    private String province;
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date establishTime;
    private Date createTime;
    private String status;             //审核是否通过
    private String introduction;
    private Integer views = 0;
    public BtBank() {
    }

    public BtBank(String id, String name, String type, String license, String principal, String contact, String tel, String email, String province, String address, Date establishTime, Date createTime, String status, String introduction) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.license = license;
        this.principal = principal;
        this.contact = contact;
        this.tel = tel;
        this.email = email;
        this.province = province;
        this.address = address;
        this.establishTime = establishTime;
        this.createTime = createTime;
        this.status = status;
        this.introduction = introduction;
    }
}
